package com.qikux.dao;

import com.qikux.entity.Notice;
import com.qikux.vo.Page;

import java.util.List;
import java.util.Map;

public interface MessageDao {


    /**
     * 最近聊天列表
     */
    List<Map<String, Object>> findMsgList(int id, Page<Map<String, Object>> pageBean);

    /**
     * 聊天好友数量
     * @param id
     * @return
     */
    int findMsgCount(int id);

    /**
     * 聊天详细信息
     * @param sendid
     * @param reviceid
     * @return
     */
    List<Map<String, Object>> findUserMsg(Long sendid, int reviceid);

    int sendMsgs(Long sendid, String recvid, String message);

    int upblackUser(Long sendid, int bid);

    List<Map<String, Object>> findMyBlack(Long sendid, Page<Map<String, Object>> pageBean);

    int findMyblackCount(Long sendid);

    int removeblack(Long sendid, int reb);

    int findunRead(Long sendid);

    int upReaded(Long sendid, int upid);

    int findBlack(Long sendid, int bid);
    List<Map<String, Object>> findBlackStatusByUserId(Long id, Long resUserId);

    List<Notice> findAllNotifiByUserId(Long id);

    List<Map<String, Object>> findAllAnnouncement();
}
